//保存中间表
function addRoleAndPermission (params) {
    return $axios({
        url: '/rolePermission/save',
        method: 'post',
        data: { ...params }
    })
}
//回填 根据角色编号获取选中的权限
function getPermissionsByRoleid (roleid) {
    return $axios({
        url: `/rolePermission/${roleid}`,
        method: 'get'
    })
}